package com.beans;

import java.time.LocalDate;
import java.time.LocalDateTime;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

import org.hibernate.validator.constraints.Length;



public class StudentInfo {
	
	//学生id
	private Integer stuId;
	//学生姓名
	@NotBlank(message="学生姓名不能为空")
	private String stuName;
	//学生密码
	@Length(min=5,max=16, message="密码长度必须在5-16之间")
	private String password;
	//学生志向
	@NotEmpty(message="{note.not.empty}")
	private String note;
	//学生性别
	private int gender;
	//学生生日
	private LocalDate birthday;
	//学生信息创建时间
	private LocalDateTime stuCreateTime;
	//学生信息修改时间
	private LocalDateTime stuUpdateTime;

	public StudentInfo(Integer stuId, String stuName, String password, String note, int gender,
			LocalDate birthday) {
		super();
		this.stuId = stuId;
		this.stuName = stuName;
		this.password = password;
		this.note = note;
		this.gender = gender;
		this.birthday = birthday;
	}

	public StudentInfo() {
		super();
	}

	@Override
	public String toString() {
		return "StudentInfo [stuId=" + stuId + ", stuName=" + stuName + ", password=" + password + ", note=" + note
				+ ", gender=" + gender + "]";
	}

	public Integer getStuId() {
		return stuId;
	}

	public void setStuId(Integer stuId) {
		this.stuId = stuId;
	}

	public String getStuName() {
		return stuName;
	}

	public void setStuName(String stuName) {
		this.stuName = stuName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public int getGender() {
		return gender;
	}

	public void setGender(int gender) {
		this.gender = gender;
	}

	public LocalDate getBirthday() {
		return birthday;
	}

	public void setBirthday(LocalDate birthday) {
		this.birthday = birthday;
	}

	public LocalDateTime getStuCreateTime() {
		return stuCreateTime;
	}

	public void setStuCreateTime(LocalDateTime stuCreateTime) {
		this.stuCreateTime = stuCreateTime;
	}

	public LocalDateTime getStuUpdateTime() {
		return stuUpdateTime;
	}

	public void setStuUpdateTime(LocalDateTime stuUpdateTime) {
		this.stuUpdateTime = stuUpdateTime;
	}
	
}
